SPLIT=../split.py

all: plot.tex plot.pdf

queue_mark_32.dat queue_mark_64.dat queue_mark_128.dat queue_mark_256.dat queue_mark_512.dat: queue_mark.dat
	$(SPLIT) $^ 'queue_mark_%s.dat'

plot.tex: queue_mark_32.dat queue_mark_64.dat queue_mark_128.dat queue_mark_256.dat queue_mark_512.dat
	gnuplot plottex.gp

plot.eps: queue_mark_32.dat queue_mark_64.dat queue_mark_128.dat queue_mark_256.dat queue_mark_512.dat
	gnuplot ploteps.gp

%.pdf: %.eps
	ps2pdf -dEPSCrop $^ $@
#	ps2pdf plot.eps plot.pdf 

clean:
	rm plot.tex plot.eps plot.pdf